package com.zjdiepu.www.model.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.zjdiepu.www.base.core.BaseVo;

/**
 * 业务单位<br/>
 * @author xiongxiaotun<br/>
 * @time 2017年07月31日 11时30分<br/>
 * @since 1.0<br/>
 */
@ApiModel(value="BaseBusiUnitVo", description="业务单位展示", parent = BaseVo.class)
public class BaseBusiUnitVo extends BaseVo {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 上级机构ID
	 */
	@ApiModelProperty(name="parentId",required=false,value="上级机构ID",example="上级机构ID")
	private String parentId;
	
	/**
	 * 上级机构编码
	 */
	@ApiModelProperty(name="parentCode",required=false,value="上级机构编码",example="上级机构编码")
	private String parentCode;
	
	/**
	 * 机构名称
	 */
	@ApiModelProperty(name="orgName",required=false,value="机构名称",example="机构名称")
	private String orgName;
	
	/**
	 * 机构编码
	 */
	@ApiModelProperty(name="orgCode",required=false,value="机构编码",example="机构编码")
	private String orgCode;
	
	/**
	 * 机构级别
	 */
	@ApiModelProperty(name="orgLevel",required=false,value="机构级别",example="机构级别")
	private String orgLevel;
	
	/**
	 * 所在省份
	 */
	@ApiModelProperty(name="provinceId",required=false,value="所在省份",example="所在省份")
	private String provinceId;
	
	/**
	 * 所在地区
	 */
	@ApiModelProperty(name="cityId",required=false,value="所在地区",example="所在地区")
	private String cityId;
	
	/**
	 * 所在地区
	 */
	@ApiModelProperty(name="areaId",required=false,value="所在地区",example="所在地区")
	private String areaId;
	
//	=========================辅助字段=============
	@ApiModelProperty(name="name",required=false,value="业务员名字",example="业务员名字")
	private String name;
	@ApiModelProperty(name="salersmanCode",required=false,value="业务员code",example="业务员code")
	private String salersmanCode;
	@ApiModelProperty(name="unitId",required=false,value="业务员组织id",example="业务员组织id")
	private String unitId;
	@ApiModelProperty(name="unitCode",required=false,value="业务员组织代码",example="业务员组织代码")
	private String unitCode;
	//辅助字段
	/**
	 * 是否是业务员
	 */
	@ApiModelProperty(name="salersman",required=false,value="是否是业务员",example="true")
	private Boolean salersman;
	/**
	 *是否选中
	 */
	@ApiModelProperty(name="checked",required=false,value="是否选中",example="true")
	private boolean checked;
	/**
	 * 是否打开
	 */
	@ApiModelProperty(name="open",required=false,value="是否打开",example="true")
	private boolean open;
	
	public String getParentId(){
		return this.parentId;
	}
	
	public void setParentId(String parentId){
		this.parentId = parentId;
	}

	public String getParentCode(){
		return this.parentCode;
	}
	
	public void setParentCode(String parentCode){
		this.parentCode = parentCode;
	}

	public String getOrgName(){
		return this.orgName;
	}
	
	public void setOrgName(String orgName){
		this.orgName = orgName;
	}

	public String getOrgCode(){
		return this.orgCode;
	}
	
	public void setOrgCode(String orgCode){
		this.orgCode = orgCode;
	}

	public String getOrgLevel(){
		return this.orgLevel;
	}
	
	public void setOrgLevel(String orgLevel){
		this.orgLevel = orgLevel;
	}

	public String getProvinceId(){
		return this.provinceId;
	}
	
	public void setProvinceId(String provinceId){
		this.provinceId = provinceId;
	}

	public String getCityId(){
		return this.cityId;
	}
	
	public void setCityId(String cityId){
		this.cityId = cityId;
	}

	public String getAreaId(){
		return this.areaId;
	}
	
	public void setAreaId(String areaId){
		this.areaId = areaId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSalersmanCode() {
		return salersmanCode;
	}

	public void setSalersmanCode(String salersmanCode) {
		this.salersmanCode = salersmanCode;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public Boolean getSalersman() {
		return salersman;
	}

	public void setSalersman(Boolean salersman) {
		this.salersman = salersman;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}
	
	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	@Override
	public String toString() {
		return super.toString() + "BaseBusiUnit [parentId = " + parentId + ", parentCode = " + parentCode + ", orgName = " + orgName + ", orgCode = " + orgCode + ", orgLevel = " + orgLevel + ", "
			+ "provinceId = " + provinceId + ", cityId = " + cityId + ", areaId = " + areaId + "]";
	}
    
}